
//加载RSS数据
function loadData(url,callback){
	
	$.ajax({
		url:url,
		type: 'GET',
		dataType:'html', 
		success:function(text){
			var dom = $(text);
			var list = new Array();
			$(text).find('item').each(function(index, element) {
                var title = $('title',this).html();
				var link = $('link',this).html();
				var pubDate = $('pubDate',this).html();
				var description = $('description',this).html();
				list.push({
					title:title,
					link:link,
					pubDate:pubDate,
					description:description,
				});
            });
			callback(list);
		},
		error:function(){
			callback(false);
		},
	})
}

		
							
							
						